package com.zzw.other;

import java.util.ArrayList;
import java.util.List;

public class Test1 {
	public static void main(String[] args) {
		MySingnal singnal = new MySingnal();
		List<Integer> data = new ArrayList<Integer>();
		Thread supply = new Thread(new SupplyDataThread(singnal, data), "supply");
		Thread process = new Thread(new ProcessDataThread(singnal, data), "process");
		supply.start();
		process.start();
	}
}
